html,body{
    box-sizing: border-box;  /*加上了后面排版方便一点*/
    width: 100%;
    margin: 0;
}

a{
    color:black;
    text-decoration: none; /* 去掉a标签的下划线*/
}

/* 有背景图的那个盒子 */
#top{
    width: 1150px;
    height: 590px;
    margin: 0 auto;
    border: 0px solid black;
    background-size: cover;
    background-image: url(../images/bg.png);
}

/* 搜索栏,耳朵,菜单栏的外层盒子,边框border不能为0px,否则排版会乱掉 */
#top .head{
    width: 1000px;
    height: 185px;
    margin: 40px auto;
    border: 2px solid transparent; /*transparent表示透明边框*/
}

/* 头栏样式 */
#header{
    width: 1150px;
    height: 32px;
    /* display: inline-block; */
    margin: 0px auto;
    background-color: #FFF5E4;
    /* border: 4px solid red; */
}
#header div:nth-child(1){
    float: left;
    width: 150px;
    height: 32px;
    line-height: 32px;
    /* background-color: #09d475; */
}
#header div:nth-child(2){
    float: right;
    width: 80px;
    height: 32px;
    line-height: 32px;
}
#header div:nth-child(3){
    float: right;
    width: 50px;
    height: 32px;
    line-height: 32px;
}

#top .main{
    width: 910px;
    margin: -80px auto;
    border: 3px solid #D5A951;
    background-color: rgb(255, 245, 228, 0.7); /* 透明度为0.7*/
}

/* logo的样式 */
#logo{
    width: 200px;
    height: 100px;
    margin-top: -24px;
    margin-left: 50px;
    background-color: #FDFBF6;
    border: 3px solid #FDFBF6;
}

/* logo右边的div盒子的样式 */
.head #bar{
    width: 740px;
    height: 187px;
    margin-top: -130px;
    margin-left: 292px ;
    font-size: 0px;
    position: relative;
    border: 2px solid transparent;
}

/* 搜索框样式 */
#top .head #bar input[type=text]{
    box-sizing: border-box;
    width: 400px;
    height: 40px;
    margin-top: 35px;
    margin-left: 160px;
    outline: none; /*去除浏览器选中状态默认边框*/
    border: 3px solid white;
    vertical-align: top;
}

/* 按钮样式 */
#top .head #bar button{
    width: 62px;
    height: 40px;
    margin-top: 35px;
    font-size: 20px;
    font-family: "楷体";
    outline: none; /*去除浏览器选中状态默认边框*/
    background-color: #AEE48D;
    border: 2px solid #AEE48D;
}

/* 放四个耳朵的盒子的样式 */
 #ear div{
    width: 135px;
    height: 40px;
    display: inline-block;
    margin: 35px 38px -35px -10px;
    position: relative;
    background: center;
    border: 0px solid black;
}
#ear div:nth-child(1){
    /* background-color:s #ff000d; */
    /* z-index: 3; */
    background-image: url(../images/ear1.png);
    background-size: cover; /* 图片平铺/*/
}
#ear div:nth-child(2){
    background-image: url(../images/ear2.png);
    background-size: cover;
}
#ear div:nth-child(3){
    background-image: url(../images/ear3.png);
    background-size: cover;
}
#ear div:nth-child(4){
    background-image: url(../images/ear4.png);
    background-size: cover;
}

/* 菜单栏样式 */
#menu{
    width: 112px;
    height: 0px; /*不能漏*/
    display: inline-block;
    margin-top: 33px;
    margin-left: 0px;
    font-size: 24px;
    font-weight: bold;
    font-family: "幼圆";
    white-space:nowrap; /*是文本强制一行显示*/
    /* border: 1px solid red; */
    /* 画直角梯形 */
    border-left: 17px solid #FDFBF6;
    border-right: 37px solid transparent;
    border-bottom: 45px solid #FDFBF6;
}
#menu div{
    width: 62px;
    height: 25px;
    text-align: center;
}
/* 菜单栏栏的a标签样式 */
#a{
    display: block;
    line-height: 47px;

    text-decoration: none; /*去掉下划线*/
}

/* 用户头像区域 */
#user{
    width: 250px;
    height: 240px;
    margin-top: -3px;
    margin-left: -3px;
    border: 3px solid #D5A951;
    background-color: #FFF5E4;
}
#user div:nth-child(1){
    width: 125px;
    height: 125px;
    margin: 10px auto;
    background-color: #39ec57;
    border-radius: 100%;
}
#user div:nth-child(2){
    text-align: center;
    margin: 18px auto;
    font-family: "楷体";
}
#user div:nth-child(3){
    text-align: center;
}
input[type=button]{
    width: 50px;
    height: 25px;
    background-color: #F2D8A6;
}
#user img{
    width: 125px;
    height: 124px;
    overflow: hidden; /*超出部分隐藏*/
    border-radius: 100%;
}

/* 轮播图区域 */
#wheel{
    width: 658px;
    height: 240px;
    margin-top: -245px;
    margin-left: 249px;
    background-color: #FFF5E4;
    border: 3px solid #D5A951;
}

/* 下面都都是是轮播图的代码 */
/* 放轮播图效果的框 */
.container {
    width: 450px;
    height: 240px;
    overflow: hidden;
    margin-top: -2px;
    margin-left: 104px;
    border: 1px solid #D5A951;
}
/* 放轮播图片的框 */
.photo {
    width: 7400px;
    height: 240px;
    animation: switch 12s ease-out infinite;
    background-size: cover;
}

.photo>img {
    float: left;
    width: 450px;
    height: 240px;
}
/*@keyframes 规则用于创建动画*/
@keyframes switch {
    0%,20% {
        margin-left: 0;
    }
    30%,50% {
        margin-left: -1200px;
    }
    60%,80% {
        margin-left: -2400px;
    }
    90%,100% {
        margin-left: -3600px;
    }
}

.list{
    width:100%;
    height:400px;
    border:1px solid black;
}

.menu1{
    width:910px;
    height:50px;
    border:1px solid red;
}

.heading{
    width:200px;
    height:44px;
    border:1px solid red;
    float: left;
    margin-left: 20px;
    font-size: 40px;
    font-family: "幼圆";
    font-style: italic;
    line-height: 55px;
}

.subheading{
    width:135px;
    height:44px;
    border:1px solid red;
    float: right;
    font-size: 28px;
    font-family: "幼圆";
    font-style: italic;
    line-height: 65px;
}

.subheading1{
    width:135px;
    height:44px;
    border:1px solid red;
    float: right;
    font-size: 28px;
    font-family: "幼圆";
    color: #fa5161;
    line-height: 65px;
}

.list #h1{
    width: 95%;
    border:2px solid #b9ac8a;
    margin:5px auto;
}

.knowledge{
    width:420px;
    height:220px;
    border:1px solid red;
    float:left;
    margin-top: 20px;
    margin-left:30px;
}

.knowledge .desc{
    width:100%;
    height:40px;
    border:1px solid red;
}

.knowledge .desc .name1{
    width:100px;
    height:29px;
    float: left;
    font-size: 25px;
    font-family: "幼圆";
    color:black;
    line-height: 30px;
    border:1px solid red;
}

.knowledge .desc .name2{
    width:100px;
    height:29px;
    float: right;
    font-size: 20px;
    font-family: "幼圆";
    text-align: right;
    color:#453cfa;
    line-height: 30px;
    border:1px solid red;
    margin-right: 15px;
}

.knowledge img{
    width:48%;
}

.knowledge .substance{
    width:48%;
    float: right;
    font-size: 18px;
    font-family: "幼圆";
    color:black;
    line-height: 30px;
    border:1px solid red;
    margin-top: 20px;
}

#split{
    width:0px;
    height:200px;
    border:2px solid #e5cc9a;
    float: left;
    margin-top: 20px;
}

#h2{
    width: 95%;
    border:2px solid #e5cc9a;
    margin:5px auto;
}